package com.qianniu.napi.admin.service;

import com.baomidou.mybatisplus.service.IService;
import com.qianniu.napi.admin.entity.Account;
import com.qianniu.napi.admin.entity.AccountFlow;
import com.qianniu.napi.admin.entity.Order;
import com.qianniu.napi.admin.entity.penum.IotypeEnum;
import com.qianniu.napi.admin.entity.penum.XftypeEnum;

import java.math.BigDecimal;

/**
 * <p>
 * 个人账务表 服务类
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
public interface IAccountService extends IService<Account> {

    public void addAccountFlow(Long uid, Long mid, Long mpid, BigDecimal money,
                               Boolean isconfirm, Integer fantimeType,
                               String sn, IotypeEnum iotype, XftypeEnum xftype, String remark, Long ywid);

    public void addAccountOutFlow(AccountFlow af);

    public void addAccountInFlow(AccountFlow af);

    public Boolean accountFlowConfirm(Order order, AccountFlow af, String transaction_id);

    public Boolean ruzhangFromAF(AccountFlow af);

    public Account initAccount(Long uid);

    public Account initAccount(Long uid, Long mid, Long mpid);

}
